package com.mew.slots.core.common.messge.response;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

/**
 * @Author King.Song
 * @Date 2020/11/10 0010
 **/
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class WinFreeMessage extends ZebraBaseMessage<WinFreeMessage> {
    private int frees;
    private int freeCount;
    private int freeType;
    private int freeRate;
    private int freeNumber;

    private int bonusBibei;
    private int bonusChange;
    private int bonusType;
    private int bonusRate;
    private int bonusNumber;
    private int state;
    private String json;
    private long lastWinNumber;

    @Override
    public void write(ByteBuf b) {
        writeInt(b, this.frees);
        writeInt(b, this.freeCount);
        writeInt(b, this.freeType);
        writeInt(b, this.freeRate);
        writeInt(b, this.freeNumber);

        writeInt(b, this.bonusBibei);
        writeInt(b, this.bonusChange);
        writeInt(b, this.bonusType);
        writeInt(b, this.bonusRate);
        writeInt(b, this.bonusNumber);
        writeInt(b, this.state);
        writeString(b, this.json);
        writeLong(b,lastWinNumber);
    }

    @Override
    public WinFreeMessage read(ByteBuf byteBuf) {
        return null;
    }

}
